package com.wt.admin.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 社区讨论表
 * </p>
 *
 * @author wt
 * @since 2023-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WqunCommunity对象", description="社区讨论表")
public class WqunCommunity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标识")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "所属社区号")
    private String crowdNo;

    @ApiModelProperty(value = "讨论人id")
        private String uid;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "回复某条说说的uid")
    private String toUid;

    @ApiModelProperty(value = "回复某个人的uid")
    private String toUserUid;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "状态:0-未删除，1-已删除")
    private String isDelete;

    @ApiModelProperty(value = "类型:0-文本，1-图片，2-视频，3-音频")
    private String type;

    @ApiModelProperty(value = "创建时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "created_time",fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "修改时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modified_time",fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;


}
